package com.ruoyi.hotel.domain;

import java.math.BigInteger;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户列表对象 hl_user
 * 
 * @author ruoyi
 * @date 2022-12-10
 */
public class HlUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Integer id;

    /** 会员权限id */
    private Integer memberId;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String name;

    /** 用户性别 */
    @Excel(name = "用户性别")
    private String sex;

    /** 籍贯 */
    @Excel(name = "籍贯")
    private String origin;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 证件号 */
    @Excel(name = "证件号")
    private String idCard;

    /** 证件类型id */
    private Long cardId;

    /** 最近活跃时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近活跃时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date activeTime;



    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setMemberId(Integer memberId)
    {
        this.memberId = memberId;
    }

    public Integer getMemberId()
    {
        return memberId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setOrigin(String origin) 
    {
        this.origin = origin;
    }

    public String getOrigin() 
    {
        return origin;
    }


    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setIdCard(String idCard)
    {
        this.idCard = idCard;
    }

    public String getIdCard()
    {
        return idCard;
    }
    public void setCardId(Long cardId) 
    {
        this.cardId = cardId;
    }

    public Long getCardId() 
    {
        return cardId;
    }
    public void setActiveTime(Date activeTime) 
    {
        this.activeTime = activeTime;
    }

    public Date getActiveTime() 
    {
        return activeTime;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("name", getName())
            .append("sex", getSex())
            .append("origin", getOrigin())
            .append("phone", getPhone())
            .append("idCard", getIdCard())
            .append("cardId", getCardId())
            .append("activeTime", getActiveTime())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
